<?php if ($command == "done"): ?>
    <?php include_partial('common/flashes') ?>
    <script type="text/javascript">
        //[CDATA[
        $(document).ready(function(){
            // redirect to the home page
            redirectToHome();
        });
        //]]
    </script>
<?php else: ?>
    <div id="header-<?php echo $sf_user->hasAnAppointment() ? "sign-up" : "confirm-your-mobile-phone" ?>">
        <?php if ($sf_user->hasAnAppointment()): ?>
            <?php include_partial("appointment/progress_bar", array("isSignIn" => false)) ?>
        <?php else: ?>
            <?php include_partial("progress_bar") ?>
        <?php endif; ?>
        <form id="step-three-form" action="<?php echo url_for('/member-register-step-three/' . $contact->getId() . '/stay') ?>" method="post">
            <?php echo $form->renderHiddenFields(false) ?>
            <div class="imperative">By now you should have received the verification code on your phone from us?</div>
            <?php include_partial("common/input_field", array("form" => $form, "field" => "mobile_activation_code")) ?>
            <div class="clearfix">
                <label>No, I haven't received anything!</label>
                <div class="input">
                    <div class="value">
                        Don't worry, you can still <a href="javascript:;" id="try-again">do another try here</a>!
                    </div>
                </div>
            </div>
            <div class="row">
                <ul>
                    <li>
                        <button id="submit-step-three" type="submit" class="blue-button-30">Submit</button>
                    </li>
                </ul>
            </div>
        </form>
    </div>
<?php endif; ?>